package com.atguigu.dao;

import com.atguigu.entity.QueryPageBean;
import com.atguigu.pojo.TravelGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TravelGroupMapper {
    int save(TravelGroup travelGroup);

    void saveGroupIdsAndItemIds(@Param("id") Integer id, @Param("travelItemIds") Integer[] travelItemIds);

    List<TravelGroup> findAllByQuery(QueryPageBean queryPageBean);

    void deleteById(Integer id);

    void edit(TravelGroup travelGroup);

    TravelGroup findOne(Integer id);

    void deleteByGId(Integer id);
}
